<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SubOrder extends Model
{
    protected $table = 'sub_order';

    //protected $primarykey = 'sub_order_id';

    protected $primaryKey = 'sub_order_id';


    public $timestamps = false;

    protected $fillable = [
        'order_id',
        'sub_order_sn',//子订单编号
        'order_type',//子订单类型 1.E贸易  0 普通订单,
        'order_status',//订单状态：1:待支付; 2:待发货；3:已发货；4:已完成；5:已取消；
        'sub_order_price',//订单价格
        'total_tariff_price',//关税,普通订单没有关税
        'shipping_fee',//物流费用,
        'shipping_type',//
        'shipping_num',//
        'shipping_time',//
        'shipping_message',//,
        'custom_pushed'//是否成功推送海关
    ];
}
